package com.yami.shop.service;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.User;
import com.yami.shop.bean.model.UserDeposit;

import java.util.List;

public interface UserDepositService extends IService<UserDeposit> {

    void depositMoney(UserDeposit userDeposit);

    UserDeposit getDepositRecordByDepositId(Long depositId);

    User depositMoneyByCash(Long depositId);

    /**
     * 根据订单编号查询充值记录
     */
    UserDeposit getDepositMoneyByOrderNumber(String orderNumber);

    /**
     * 查询指定时间的充值记录
     */
    List<UserDeposit> getUserDepositList(DateTime lessThanUpdateTime);

    /**
     * 更新推广金额到指定商家账户
     */
    void updatePromoteFee(UserDeposit userDeposit);


}
